import type { Layout } from './basewindow'

type Flow = 'Horizontal' | 'Vertical'
let currId = 1

/** 分割线宽度 */
export const windowSeparatorLineWidth = 2

export class WindowSeparatorLine {
  id: number // 分割线id
  flow: Flow // 分割线朝向
  top: number
  bottom: number
  left: number
  right: number
  layout: Layout // 所在布局
  index: number // 所在布局中的序数

  constructor(
    flow: Flow,
    top: number,
    bottom: number,
    left: number,
    right: number,
    layout: Layout,
    index: number
  ) {
    this.id = currId++
    this.flow = flow
    this.top = top
    this.bottom = bottom
    this.left = left
    this.right = right
    this.layout = layout
    this.index = index
  }
}
